// / <reference path="cookies.js" />

function closeAddBlock() {
	var closeCookie = getCookie("AddBlockIsClose");
	if (closeCookie == null) {
		setCookie("AddBlockIsClose", "true", 30);
	}
	$('.addBlock').hide();
}

window.onload = function() {
	if ((navigator.userAgent.indexOf('iPhone') != -1)
			|| (navigator.userAgent.indexOf('iPod') != -1)
			|| (navigator.userAgent.indexOf('iPad') != -1)) {
		if ((navigator.userAgent.indexOf('5.0 Mobile') != -1)
				|| (navigator.userAgent.indexOf('5.0.1 Mobile') != -1)
				|| (navigator.userAgent.indexOf('5.0.2 Mobile') != -1)
				|| (navigator.userAgent.indexOf('5.0.3 Mobile') != -1)
				|| (navigator.userAgent.indexOf('5.0.4 Mobile') != -1)
				|| (navigator.userAgent.indexOf('5.0.5 Mobile') != -1)
				|| (navigator.userAgent.indexOf('4.0 Mobile') != -1)
				|| (navigator.userAgent.indexOf('4.0.1 Mobile') != -1)
				|| (navigator.userAgent.indexOf('4.0.2 Mobile') != -1)
				|| (navigator.userAgent.indexOf('4.0.3 Mobile') != -1)
				|| (navigator.userAgent.indexOf('4.0.4 Mobile') != -1)
				|| (navigator.userAgent.indexOf('4.0.5 Mobile') != -1)
				|| (navigator.userAgent.indexOf('4.1 Mobile') != -1)) {
			$('.bottomBlock').css('position', 'absolute');
		}
	}
}
